package com.ls.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author ${author}
 * @since 2022-05-09
 */
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    /**
     * 订单交易号
     */
    private String outTradeNo;

    /**
     * 医院编号
     */
    private String hoscode;

    /**
     * 医院名称
     */
    private String hosname;

    /**
     * 科室编号
     */
    private String depcode;

    /**
     * 科室名称
     */
    private String depname;

    /**
     * 医生职称
     */
    private String title;

    /**
     * 排班编号（医院自己的排班主键）
     */
    private String hosScheduleId;

    /**
     * 安排日期
     */
    private LocalDate reserveDate;

    /**
     * 安排时间（0：上午 1：下午）
     */
    private Integer reserveTime;

    /**
     * 就诊人id
     */
    private Integer patientId;

    /**
     * 就诊人名称
     */
    private String patientName;

    /**
     * 就诊人手机
     */
    private String patientPhone;

    /**
     * 预约记录唯一标识（医院预约记录主键）
     */
    private String hosRecordId;

    /**
     * 预约号序
     */
    private Integer number;

    /**
     * 建议取号时间
     */
    private String fetchTime;

    /**
     * 取号地点
     */
    private String fetchAddress;

    /**
     * 医事服务费
     */
    private BigDecimal amount;

    /**
     * 退号时间
     */
    private LocalDateTime quitTime;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    /**
     * 更新时间
     */
    private LocalDate updateTime;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    private Integer isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getHoscode() {
        return hoscode;
    }

    public void setHoscode(String hoscode) {
        this.hoscode = hoscode;
    }

    public String getHosname() {
        return hosname;
    }

    public void setHosname(String hosname) {
        this.hosname = hosname;
    }

    public String getDepcode() {
        return depcode;
    }

    public void setDepcode(String depcode) {
        this.depcode = depcode;
    }

    public String getDepname() {
        return depname;
    }

    public void setDepname(String depname) {
        this.depname = depname;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHosScheduleId() {
        return hosScheduleId;
    }

    public void setHosScheduleId(String hosScheduleId) {
        this.hosScheduleId = hosScheduleId;
    }

    public LocalDate getReserveDate() {
        return reserveDate;
    }

    public void setReserveDate(LocalDate reserveDate) {
        this.reserveDate = reserveDate;
    }

    public Integer getReserveTime() {
        return reserveTime;
    }

    public void setReserveTime(Integer reserveTime) {
        this.reserveTime = reserveTime;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone;
    }

    public String getHosRecordId() {
        return hosRecordId;
    }

    public void setHosRecordId(String hosRecordId) {
        this.hosRecordId = hosRecordId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getFetchTime() {
        return fetchTime;
    }

    public void setFetchTime(String fetchTime) {
        this.fetchTime = fetchTime;
    }

    public String getFetchAddress() {
        return fetchAddress;
    }

    public void setFetchAddress(String fetchAddress) {
        this.fetchAddress = fetchAddress;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public LocalDateTime getQuitTime() {
        return quitTime;
    }

    public void setQuitTime(LocalDateTime quitTime) {
        this.quitTime = quitTime;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    public LocalDate getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", outTradeNo=" + outTradeNo +
        ", hoscode=" + hoscode +
        ", hosname=" + hosname +
        ", depcode=" + depcode +
        ", depname=" + depname +
        ", title=" + title +
        ", hosScheduleId=" + hosScheduleId +
        ", reserveDate=" + reserveDate +
        ", reserveTime=" + reserveTime +
        ", patientId=" + patientId +
        ", patientName=" + patientName +
        ", patientPhone=" + patientPhone +
        ", hosRecordId=" + hosRecordId +
        ", number=" + number +
        ", fetchTime=" + fetchTime +
        ", fetchAddress=" + fetchAddress +
        ", amount=" + amount +
        ", quitTime=" + quitTime +
        ", orderStatus=" + orderStatus +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
